package com.qidian.mes.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Author 32郗建狄
 * @Company GX631
 * Time 2023/10/25 19:32
 * Description
 *
 */
@Data
public class MdItemType {
    private List<MdItemType> children;
    private String parentTypeName;
    private Long itemTypeId;//物料类型ID
    private String itemTypeCode;//物料类型编码
    private String itemTypeName;//物料类型名称
    private Long parentTypeId;//父类型ID
    private Integer parent;//父节点标识 1是 2不是
    private String itemOrProduct;//物料产品标识
    private Integer orderNum;//排序顺序
    private String enableFlag;//是否启用
    private String remark;//备注
    private String createBy;//创建人
    private Date createTime;//创建时间
    private String updateBy;//更新人
    private Date updateTime;//更新时间
    private Long createTimeMillis;
    private Long modifyTimeMillis;

    public Long getCreateTimeMillis() {
        if (this.createTime != null) {
            return this.createTime.getTime();
        }
        return null;
    }

    public void setCreateTimeMillis(Long createTimeMillis) {
        this.createTimeMillis = createTimeMillis;
    }

    public Long getModifyTimeMillis() {
        if (this.updateTime != null) {
            return this.updateTime.getTime();
        }
        return null;
    }

    public void setModifyTimeMillis(Long modifyTimeMillis) {
        this.modifyTimeMillis = modifyTimeMillis;
    }
}
